package com.example.element.module.events.custom;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.LinearLayout;

import androidx.annotation.Nullable;

import com.example.common.utils.L;

public class CusLinearLayout extends LinearLayout {

    private static final String TAG = "CusLinearLayout";

    public CusLinearLayout(Context context) {
        super(context);
    }

    public CusLinearLayout(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        L.e(TAG, "dispatchTouchEvent--事件分发");
        return super.dispatchTouchEvent(ev);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        L.e(TAG,"onInterceptTouchEvent--事件拦截");
        return super.onInterceptTouchEvent(ev);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        L.e(TAG,"onTouchEvent--事件触摸");
        return super.onTouchEvent(event);
    }
}
